﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace WJP.DataPortal.WCF
{
    /// <summary>
    /// 请求消息用于检索现有业务对象。
    /// </summary>
    [DataContract]
    [Serializable]
    public class FetchRequest
    {
        /// <summary>
        /// 
        /// </summary>
        [DataMember]
        public Type ObjectType { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMember]
        public object Criteria { get; set; }

        /// <summary>
        /// 客户端数据门户上下文
        /// </summary>
        [DataMember]
        public DataPortalContext Context { get; set; }
    }
}
